package router

import (
	"github.com/gin-gonic/gin"
	"service_base_shop_api/user_web/api"
	"service_base_shop_api/user_web/middlewares"
)

//用户路由
func InitCartRouter(Router *gin.RouterGroup)  {
	UserRouter := Router.Group("cart")
	{
		UserRouter.POST("/cart_list",middlewares.JWTAuth(),api.GetChrtList)
		UserRouter.POST("/updata_cart",middlewares.JWTAuth(),api.UpdataCart)
		UserRouter.POST("/del_cart",middlewares.JWTAuth(),api.DelCart)
		UserRouter.POST("/add_cart",middlewares.JWTAuth(),api.AddChrt)
	}
}